const routes = [
    // 快递公司
    {
        name: "courierCompanyList",
        path: "/courierCompany/list",
        component: "/courierCompany/list"
    },
    {
        name: "courierCompanyEdit",
        path: "/courierCompany/list/edit",
        component: "/courierCompany/add",
        hideInMenu: true,
    },
    {
        name: "courierCompanyAdd",
        path: "/courierCompany/list/add",
        component: "/courierCompany/add",
        hideInMenu: true,
    },
    // 物业公司
    {
        name: "propertyList",
        path: "/propertyCompany/list",
        component: "/propertyCompany/list"
    },
    {
        name: "propertyCompanyEdit",
        path: "/propertyCompany/list/edit",
        component: "/propertyCompany/add",
        hideInMenu: true,
    },
    {
        name: "propertyCompanyAdd",
        path: "/propertyCompany/list/add",
        component: "/propertyCompany/add",
        hideInMenu: true,
    },
    // 校园小区
    {
        name: "campusCommunityList",
        path: "/campusCommunity/list",
        component: "/campusCommunity/list"
    },
    {
        name: "campusCommunityEdit",
        path: "/campusCommunity/list/edit",
        component: "/campusCommunity/add",
        hideInMenu: true,
    },
    {
        name: "campusCommunityAdd",
        path: "/campusCommunity/list/add",
        component: "/campusCommunity/add",
        hideInMenu: true,
    },
    {
        name: "campusCommunityArea",
        path: "/campusCommunity/list/area",
        component: "/campusCommunity/area",
        hideInMenu: true,
    },
    {
        name: "campusCommunityDepartment",
        path: "/campusCommunity/list/department",
        component: "/campusCommunity/department",
        hideInMenu: true,
    },
    // 物流中心
    {
        name: "logisticsCenterList",
        path: "/logisticsCenter/list",
        component: "/logisticsCenter/list"
    },
    {
        name: "logisticsCenterEdit",
        path: "/logisticsCenter/list/edit",
        component: "/logisticsCenter/add",
        hideInMenu: true,
    },
    {
        name: "logisticsCenterAdd",
        path: "/logisticsCenter/list/add",
        component: "/logisticsCenter/add",
        hideInMenu: true,
    },
    {
        name: "logisticsCenterAdd",
        path: "/logisticsCenter/list/express",
        component: "/logisticsCenter/express",
        hideInMenu: true,
    },
    {
        name: "logisticsCenterSorting",
        path: "/logisticsCenter/list/sorting",
        component: "/logisticsCenter/sorting",
        hideInMenu: true,
    },
    // 分区管理
    {
        name: "partitionManagementList",
        path: "/partitionManagement/list",
        component: "/partitionManagement/list"
    },
    {
        name: "partitionManagementDetail",
        path: "/partitionManagement/list/detail",
        component: "/partitionManagement/detail",
        hideInMenu: true,
    },
    {
        name: "partitionManagementCabinet",
        path: "/partitionManagement/list/cabinet",
        component: "/partitionManagement/cabinet",
        hideInMenu: true,
    },
    // 数据对接配置
    {
        name: "cooperationCompanyList",
        path: "/cooperationCompany/list",
        component: "/cooperationCompany/list"
    },
    {
        name: "cooperationCompanyAdd",
        path: "/cooperationCompany/list/add",
        component: "/cooperationCompany/add",
        hideInMenu: true,
    },
    {
        name: "cooperationCompanyEdit",
        path: "/cooperationCompany/list/edit",
        component: "/cooperationCompany/add",
        hideInMenu: true,
    },
    {
        name: "cooperationCompanyDetail",
        path: "/cooperationCompany/list/detail",
        component: "/cooperationCompany/detail",
        hideInMenu: true,
    },
    {
        name: 'cooperationCompanyBatchAdd',
        path: "/cooperationCompany/list/batchAdd",
        component: "/cooperationCompany/batchAdd",
        hideInMenu: true,
    },
    {
        name: "cooperationCompanySmallWhite",
        path: "/cooperationCompany/list/smallWhite",
        component: "/cooperationCompany/smallWhite",
        hideInMenu: true,
    },
    {
        name: "cooperationCompanySmallWhiteAdd",
        path: "/cooperationCompany/list/smallWhiteAdd",
        component: "/cooperationCompany/smallWhiteAdd",
        hideInMenu: true,
    },
    {
        name: "cooperationCompanySmallWhiteEdit",
        path: "/cooperationCompany/list/smallWhiteEdit",
        component: "/cooperationCompany/smallWhiteAdd",
        hideInMenu: true,
    },
    {
        name: "cooperationCompanySmallWhiteDetail",
        path: "/cooperationCompany/list/smallWhiteDetail",
        component: "/cooperationCompany/smallWhiteDetail",
        hideInMenu: true,
    },
    // 员工管理
    {
        name: "couriersManagementList",
        path: "/couriersManagement/list",
        component: "/couriersManagement/list",
    },
    {
        name: "couriersManagementAdd",
        path: "/couriersManagement/list/add",
        component: "/couriersManagement/add",
        hideInMenu: true,
    },
    {
        name: "couriersManagementEdit",
        path: "/couriersManagement/list/edit",
        component: "/couriersManagement/add",
        hideInMenu: true,
    },
    // 电子面单管理
    {
        name: "electronicSurfaceSingleList",
        path: "/electronicSurfaceSingle/list",
        component: "/electronicSurfaceSingle/list"
    },
    {
        name: "electronicSurfaceSingleInfo",
        path: "/electronicSurfaceSingle/list/info",
        component: "/electronicSurfaceSingle/info"
    },
    // 派件资费管理
    {
        name: "packagePricesList",
        path: "/packagePrices/list",
        component: "/packagePrices/list"
    },
    {
        name: "packagePricesAdd",
        path: "/packagePrices/list/add",
        component: "/packagePrices/add",
        hideInMenu: true,
    },
    // 揽件资费配置-新
    {
        name: "arrangeForPackageFeeList",
        path: "/arrangeForPackageFee/list",
        component: "/arrangeForPackageFee/list",
        hideInMenu: true,
    },
    // VIP用户管理
    {
        name: "VIPUserManagementList",
        path: "/VIPUserManagement/list",
        component: "/VIPUserManagement/list"
    },
    {
        name: "VIPUserManagementAdd",
        path: "/VIPUserManagement/list/add",
        component: "/VIPUserManagement/add",
        hideInMenu: true,
    },
    {
        name: "VIPUserManagementEdit",
        path: "/VIPUserManagement/list/edit",
        component: "/VIPUserManagement/add",
        hideInMenu: true,
    },
    {
        name: "VIPUserManagementDetail",
        path: "/VIPUserManagement/list/detail",
        component: "/VIPUserManagement/detail",
        hideInMenu: true,
    },
    {
        name: "VIPUserManagementDiscount",
        path: "/VIPUserManagement/list/discount",
        component: "/VIPUserManagement/discount",
        hideInMenu: true,
    },
    {
        name: "VIPUserManagementExpress",
        path: "/VIPUserManagement/list/express",
        component: "/VIPUserManagement/express",
        hideInMenu: true,
    },
    {
        name: "VIPUserManagementCount",
        path: "/VIPUserManagement/list/count",
        component: "/VIPUserManagement/count",
        hideInMenu: true,
    },
    // 柜体管理
    {
        name: "cabinetManagementList", // 列表
        path: "/cabinetManagement/list",
        component: "/cabinetManagement/list"
    },
    {
        name: "cabinetManagementAdd", // 新增
        path: "/cabinetManagement/list/add",
        component: "/cabinetManagement/add",
        hideInMenu: true,
    },
    {
        name: "cabinetManagementEdit", // 编辑
        path: "/cabinetManagement/list/edit",
        component: "/cabinetManagement/add",
        hideInMenu: true,
    },
    {
        name: "cabinetManagementDetail", // 详情
        path: "/cabinetManagement/list/detail",
        component: "/cabinetManagement/detail",
        hideInMenu: true,
    },
    {
        name: "cabinetManagementBroken", // 断网统计
        path: "/cabinetManagement/list/broken",
        component: "/cabinetManagement/broken",
        hideInMenu: true,
    },
    {
        name: "cabinetManagementBrokenDetail", // 断网详情
        path: "/cabinetManagement/list/brokenDetail",
        component: "/cabinetManagement/brokenDetail",
        hideInMenu: true,
    },
    {
        name: "cabinetManagementTrajectory", // 柜体轨迹
        path: "/cabinetManagement/list/trajectory",
        component: "/cabinetManagement/trajectory",
        hideInMenu: true,
    },
    {
        name: "cabinetManagementLogs", // 修改日志
        path: "/cabinetManagement/list/logs",
        component: "/cabinetManagement/logs",
        hideInMenu: true,
    },
    {
        name: "cabinetManagementDetail", // 详情
        path: "/cabinetManagement/list/detail",
        component: "/cabinetManagement/detail",
        hideInMenu: true,
    },
    {
        name: "bookingCourier", // 配置预约快递员
        path: "/cabinetManagement/list/bookingCourier",
        component: "/cabinetManagement/bookingCourier",
        hideInMenu: true,
    },
    {
        name: "whiteList", // 投递白名单配置
        path: "/cabinetManagement/list/deliveryWhiteList",
        component: "/cabinetManagement/deliveryWhiteList",
        hideInMenu: true,
    },
    {
        name: "mouthDetailsList", // 格口更多详情列表
        path: "/cabinetManagement/list/mouthDetails/list",
        component: "/cabinetManagement/mouthDetails/list",
        hideInMenu: true,
    },
    {
        name: "mouthDetailsTrajectory", // 格口更多详情-格口轨迹
        path: "/cabinetManagement/list/mouthDetails/trajectory",
        component: "/cabinetManagement/mouthDetails/trajectory",
        hideInMenu: true,
    },
    {
        name: "mouthDetailsHistoryOrder", // 格口更多详情-历史订单
        path: "/cabinetManagement/list/mouthDetails/historyOrder",
        component: "/cabinetManagement/mouthDetails/historyOrder",
        hideInMenu: true,
    },
    {
        name: "mouthDetailsLog", // 格口更多详情-操作日志
        path: "/cabinetManagement/list/mouthDetails/log",
        component: "/cabinetManagement/mouthDetails/log",
        hideInMenu: true,
    },
    {
        name: "mouthDetailsHumiture", // 温湿度
        path: "/cabinetManagement/list/mouthDetails/humiture",
        component: "/cabinetManagement/mouthDetails/humiture",
        hideInMenu: true,
    },
    // 副柜管理
    {
        name: "deputyCabinetManagement", // 副柜列表
        path: "/deputyCabinetManagement/list",
        component: "/deputyCabinetManagement/list",
        hideInMenu: true,
    },
    {
        name: "deputyCabinetAdd", // 添加副柜
        path: "/deputyCabinetManagement/list/add",
        component: "/deputyCabinetManagement/edit",
        hideInMenu: true,
    },
    {
        name: "deputyCabinetEdit", // 编辑副柜
        path: "/deputyCabinetManagement/list/edit",
        component: "/deputyCabinetManagement/edit",
        hideInMenu: true,
    },
    // 驿站管理
    {
        name: "postManagementList",
        path: "/postManagement/list",
        component: "/postManagement/list",
    },
    {
        name: "postManagementAdd",
        path: "/postManagement/list/add",
        component: "/postManagement/add",
        hideInMenu: true,
    },
    {
        name: "postManagementEdit",
        path: "/postManagement/list/edit",
        component: "/postManagement/add",
        hideInMenu: true,
    },
    // 宝箱宝盒管理
    {
        name: "boxManagementList", // 列表
        path: "/boxManagement/list",
        component: "/boxManagement/list"
    },
    {
        name: "boxManagementAdd", // 新增
        path: "/boxManagement/list/add",
        component: "/boxManagement/add",
        hideInMenu: true,
    },
    {
        name: "boxManagementEdit", // 编辑
        path: "/boxManagement/list/edit",
        component: "/boxManagement/add",
        hideInMenu: true,
    },
    // 货架地堆管理
    {
        name: "shelvesToHeapList", // 列表
        path: "/shelvesToHeap/list",
        component: "/shelvesToHeap/list"
    },
    {
        name: "shelvesToHeapAdd", // 新增
        path: "/shelvesToHeap/list/add",
        component: "/shelvesToHeap/add",
        hideInMenu: true,
    },
    {
        name: "shelvesToHeapEdit", // 编辑
        path: "/shelvesToHeap/list/edit",
        component: "/shelvesToHeap/add",
        hideInMenu: true,
    },
    {
        name: "shelvesToHeapPartitionList", // 设置分区列表
        path: "/shelvesToHeap/list/partition/list",
        component: "/shelvesToHeap/partition/list",
        hideInMenu: true,
    },
    {
        name: "shelvesToHeapPartitionOrder", // 查看历史订单
        path: "/shelvesToHeap/list/partition/order",
        component: "/shelvesToHeap/partition/order",
        hideInMenu: true,
    },
    // 云盒管理
    {
        name: "cloudBoxManagementList", // 列表
        path: "/cloudBoxManagement/list",
        component: "/cloudBoxManagement/list"
    },
    {
        name: "cloudBoxManagementAdd", // 添加
        path: "/cloudBoxManagement/list/add",
        component: "/cloudBoxManagement/add",
        hideInMenu: true,
    },
    // 货架管理
    {
        name: 'goodsManagement',
        path: '/goodsManagement/list',
        component: '/goodsManagement/list',
    },
    {
        name: 'goodsManagementAdd',
        path: '/goodsManagement/list/add',
        component: '/goodsManagement/add',
    },
    // 号段管理
    {
        name: 'sectionManagement',
        path: '/sectionManagement/list',
        component: '/sectionManagement/list',
    },
    // IMEI管理
    {
        name: 'imeiManagement',
        path: '/imeiManagement/list',
        component: '/imeiManagement/list',
    },
    // 菜鸟数据对接
    {
        name: 'cainiaoDataDock',
        path: '/cainiaoDataDock/list',
        component: '/cainiaoDataDock/list',
    },
    {
        name: "cainiaoDataDockAdd",
        path: "/cainiaoDataDock/list/add",
        component: "/cainiaoDataDock/add",
        hideInMenu: true,
    },
    {
        name: "cainiaoDataDockEdit",
        path: "/cainiaoDataDock/list/edit",
        component: "/cainiaoDataDock/add",
        hideInMenu: true,
    },
    // 预充值审核管理
    {
        name: 'preReChargeAudit',
        path: '/preReChargeAudit/list',
        component: '/preReChargeAudit/list',
    },
];

const basic = routes.map((route: any) => {
    route.path = `/basic${route.path}`;
    route.component = `./basic${route.component}`;
    return route;
}, {});


export default [
    {
        name: "basic",
        path: "/basic",
        icon: "smile",
        routes: [
            ...basic,
            {
                component: "./404"
            }
        ]
    },
]
